Optimal. Leaf size=103 \[ \frac{x}{3 \sqrt{2}}+\frac{\tan ^{-1}\left (\sqrt{1-\sqrt [3]{-1}} \tan (x)\right )}{3 \sqrt{1-\sqrt [3]{-1}}}+\frac{\tan ^{-1}\left (\sqrt{1+(-1)^{2/3}} \tan (x)\right )}{3 \sqrt{1+(-1)^{2/3}}}+\frac{\tan ^{-1}\left (\frac{\sin (x) \cos (x)}{\sin ^2(x)+\sqrt{2}+1}\right )}{3 \sqrt{2}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.103638, antiderivative size = 103, normalized size of antiderivative = 1., number of steps used = 7, number of rules used = 3, integrand size = 8, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.375, Rules used = {3211, 3181, 203} \[ \frac{x}{3 \sqrt{2}}+\frac{\tan ^{-1}\left (\sqrt{1-\sqrt [3]{-1}} \tan (x)\right )}{3 \sqrt{1-\sqrt [3]{-1}}}+\frac{\tan ^{-1}\left (\sqrt{1+(-1)^{2/3}} \tan (x)\right )}{3 \sqrt{1+(-1)^{2/3}}}+\frac{\tan ^{-1}\left (\frac{\sin (x) \cos (x)}{\sin ^2(x)+\sqrt{2}+1}\right )}{3 \sqrt{2}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3211
Rule 3181
Rule 203
Rubi steps
\begin{align*} \int \frac{1}{1+\sin ^6(x)} \, dx &=\frac{1}{3} \int \frac{1}{1+\sin ^2(x)} \, dx+\frac{1}{3} \int \frac{1}{1-\sqrt [3]{-1} \sin ^2(x)} \, dx+\frac{1}{3} \int \frac{1}{1+(-1)^{2/3} \sin ^2(x)} \, dx\\ &=\frac{1}{3} \operatorname{Subst}\left (\int \frac{1}{1+2 x^2} \, dx,x,\tan (x)\right )+\frac{1}{3} \operatorname{Subst}\left (\int \frac{1}{1+\left (1-\sqrt [3]{-1}\right ) x^2} \, dx,x,\tan (x)\right )+\frac{1}{3} \operatorname{Subst}\left (\int \frac{1}{1+\left (1+(-1)^{2/3}\right ) x^2} \, dx,x,\tan (x)\right )\\ &=\frac{x}{3 \sqrt{2}}+\frac{\tan ^{-1}\left (\frac{\cos (x) \sin (x)}{1+\sqrt{2}+\sin ^2(x)}\right )}{3 \sqrt{2}}+\frac{\tan ^{-1}\left (\sqrt{1-\sqrt [3]{-1}} \tan (x)\right )}{3 \sqrt{1-\sqrt [3]{-1}}}+\frac{\tan ^{-1}\left (\sqrt{1+(-1)^{2/3}} \tan (x)\right )}{3 \sqrt{1+(-1)^{2/3}}}\\ \end{align*}
Mathematica [A] time = 0.164577, size = 79, normalized size = 0.77 \[ \frac{1}{12} \left (-2 \sqrt{3} \tan ^{-1}\left (\frac{1-2 \tan (x)}{\sqrt{3}}\right )+2 \sqrt{2} \tan ^{-1}\left (\sqrt{2} \tan (x)\right )+2 \sqrt{3} \tan ^{-1}\left (\frac{2 \tan (x)+1}{\sqrt{3}}\right )-\log (2-\sin (2 x))+\log (\sin (2 x)+2)\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.044, size = 72, normalized size = 0.7 \begin{align*}{\frac{\arctan \left ( \sqrt{2}\tan \left ( x \right ) \right ) \sqrt{2}}{6}}-{\frac{\ln \left ( \left ( \tan \left ( x \right ) \right ) ^{2}-\tan \left ( x \right ) +1 \right ) }{12}}+{\frac{\sqrt{3}}{6}\arctan \left ({\frac{ \left ( 2\,\tan \left ( x \right ) -1 \right ) \sqrt{3}}{3}} \right ) }+{\frac{\ln \left ( \left ( \tan \left ( x \right ) \right ) ^{2}+\tan \left ( x \right ) +1 \right ) }{12}}+{\frac{\sqrt{3}}{6}\arctan \left ({\frac{ \left ( 1+2\,\tan \left ( x \right ) \right ) \sqrt{3}}{3}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.46809, size = 96, normalized size = 0.93 \begin{align*} \frac{1}{6} \, \sqrt{3} \arctan \left (\frac{1}{3} \, \sqrt{3}{\left (2 \, \tan \left (x\right ) + 1\right )}\right ) + \frac{1}{6} \, \sqrt{3} \arctan \left (\frac{1}{3} \, \sqrt{3}{\left (2 \, \tan \left (x\right ) - 1\right )}\right ) + \frac{1}{6} \, \sqrt{2} \arctan \left (\sqrt{2} \tan \left (x\right )\right ) + \frac{1}{12} \, \log \left (\tan \left (x\right )^{2} + \tan \left (x\right ) + 1\right ) - \frac{1}{12} \, \log \left (\tan \left (x\right )^{2} - \tan \left (x\right ) + 1\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.8856, size = 466, normalized size = 4.52 \begin{align*} \frac{1}{12} \, \sqrt{3} \arctan \left (\frac{4 \, \sqrt{3} \cos \left (x\right ) \sin \left (x\right ) + \sqrt{3}}{3 \,{\left (2 \, \cos \left (x\right )^{2} - 1\right )}}\right ) + \frac{1}{12} \, \sqrt{3} \arctan \left (\frac{4 \, \sqrt{3} \cos \left (x\right ) \sin \left (x\right ) - \sqrt{3}}{3 \,{\left (2 \, \cos \left (x\right )^{2} - 1\right )}}\right ) - \frac{1}{12} \, \sqrt{2} \arctan \left (\frac{3 \, \sqrt{2} \cos \left (x\right )^{2} - 2 \, \sqrt{2}}{4 \, \cos \left (x\right ) \sin \left (x\right )}\right ) + \frac{1}{24} \, \log \left (-\cos \left (x\right )^{4} + \cos \left (x\right )^{2} + 2 \, \cos \left (x\right ) \sin \left (x\right ) + 1\right ) - \frac{1}{24} \, \log \left (-\cos \left (x\right )^{4} + \cos \left (x\right )^{2} - 2 \, \cos \left (x\right ) \sin \left (x\right ) + 1\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.14276, size = 250, normalized size = 2.43 \begin{align*} \frac{1}{6} \, \sqrt{3}{\left (x + \arctan \left (-\frac{\sqrt{3} \sin \left (2 \, x\right ) + \cos \left (2 \, x\right ) - 2 \, \sin \left (2 \, x\right ) + 1}{\sqrt{3} \cos \left (2 \, x\right ) + \sqrt{3} - 2 \, \cos \left (2 \, x\right ) - \sin \left (2 \, x\right ) + 2}\right )\right )} + \frac{1}{6} \, \sqrt{3}{\left (x + \arctan \left (-\frac{\sqrt{3} \sin \left (2 \, x\right ) - \cos \left (2 \, x\right ) - 2 \, \sin \left (2 \, x\right ) - 1}{\sqrt{3} \cos \left (2 \, x\right ) + \sqrt{3} - 2 \, \cos \left (2 \, x\right ) + \sin \left (2 \, x\right ) + 2}\right )\right )} + \frac{1}{6} \, \sqrt{2}{\left (x + \arctan \left (-\frac{\sqrt{2} \sin \left (2 \, x\right ) - 2 \, \sin \left (2 \, x\right )}{\sqrt{2} \cos \left (2 \, x\right ) + \sqrt{2} - 2 \, \cos \left (2 \, x\right ) + 2}\right )\right )} + \frac{1}{12} \, \log \left (\tan \left (x\right )^{2} + \tan \left (x\right ) + 1\right ) - \frac{1}{12} \, \log \left (\tan \left (x\right )^{2} - \tan \left (x\right ) + 1\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]